package cn.aopmin.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import cn.aopmin.domain.User;
import cn.aopmin.mapper.UserMapper;
import cn.aopmin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 注意：Service层的类上，必须要加 >>dubbo的@Service<<注解
 *      要导入的是：com.alibaba.dubbo.config.annotation.Service
 * @author aopmin
 * @date 2024/06/23
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(Integer id) {
        System.out.println("--------------20881-------------");
        return userMapper.findById(id);
    }
}
